package com.weiyuwqj.server.service.sys.impl;

import com.weiyuwqj.server.service.base.BaseServiceImpl;
import com.weiyuwqj.api.service.SysUserRoleService;
import com.weiyuwqj.server.mapper.SysUserRoleMapper;
import com.weiyuwqj.api.model.SysUserRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zhangyong on 2016/7/21.
 */
@Service("userRoleService")
public class SysUserRoleServiceImpl extends BaseServiceImpl<SysUserRole> implements SysUserRoleService{

    @Autowired
    SysUserRoleMapper userRoleMapper;

    @Override
    public SysUserRole getOneByUserId(Integer userId) {
        return userRoleMapper.getOneByUserId(userId);
    }
}
